package com.taotao.item.pojo;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;

import com.taotao.pojo.TbItem;

/**
 * Item的封装类
 * @title TbItem
 * <p>description</p>
 * <p>company: www.itheima.com</p>
 * @author 天火
 * @version 1.0
 */
public class Item extends TbItem{
	
	public Item(TbItem item) {
		BeanUtils.copyProperties(item, this);
	}
	
	
	public String[] getImages() {
		if(StringUtils.isNoneBlank(super.getImage())) {
			return super.getImage().split(",");
		}
		return null;
	}

}
